/*
 * Copyright (c) 2025 CAX Conversion Project
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.isfd.domain.IsfdDatabaseModelingConfig;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 数据库建模配置业务对象 isfd_database_modeling_config
 *
 * @author Lion Li
 * @date 2024-11-27
 */
@Data
@AutoMappers({
    @AutoMapper(target = IsfdDatabaseModelingConfig.class, reverseConvertGenerate = false),
    @AutoMapper(target = IsfdDatabaseModelingConfigBo.class, reverseConvertGenerate = false),
})

public class IsfdDatabaseModelingConfigSaveBo {

    /**
     * 模型名称
     */
    @NotBlank(message = "模型名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String modelName;

    /**
     * 业务场景
     */
    @NotBlank(message = "业务场景不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessScenario;

    /**
     * 业务系统
     */
    @NotBlank(message = "业务系统不能为空", groups = { AddGroup.class, EditGroup.class })
    private String businessSystem;

    /**
     * 要素库类型
     */
    @NotBlank(message = "要素库类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String databaseType;

    /**
     * 子类型
     */
    private String databaseSubtype;

    /**
     * 表名
     */
    private String tableName;

    /**
     * 表描述
     */
    private String tableDescription;

    /**
     * 字段列表
     */
    @NotNull(message = "字段列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<IsfdDatabaseModelingConfigFieldBo> fieldList;
}
